package com.wuming.house.service;

import com.wuming.house.core.BusinessException;
import com.wuming.house.model.HouseTag;

import java.util.List;

public interface HouseTagService {

    /**
     * 保存楼盘标签
     *
     * @param houseTag 楼盘标签
     * @throws BusinessException
     */
    void saveHouseTag(HouseTag houseTag) throws BusinessException;

    /**
     * 根据楼盘id查询楼盘标签
     *
     * @param houseId   楼盘id
     * @param houseType 楼盘类型
     * @return 楼盘标签
     * @throws BusinessException
     */
    List<HouseTag> getHouseTagByHouseId(Long houseId, Integer houseType) throws BusinessException;


    /**
     * 根据id删除房子标签
     *
     * @param id
     * @throws BusinessException
     */
    void removeHouseTag(Long id) throws BusinessException;
}
